<style type="text/css">
#paginator li {
	display:inline;
	border:1px solid #ccc;
	padding:2px 6px;
}
#paginator li.current {
	border-color:#eee;
}
</style>
<?php $queryStr = (empty($this->query)?'':'?'.http_build_query($this->query));?>
<ul id="paginator" class="clearfix">
<?php if($this->paginator->getFirst() != $this->paginator->getFirstPageInRange()) {?>
<li class="first"><a href="<?php echo $this->route->assemble(array($this->page=>$this->paginator->getFirst())+$this->params).$queryStr;?>"><?php echo $this->paginator->getFirst();?></a></li>
<?php }?>

<?php if($this->paginator->getPrevious()) {?>
<li class="prev"><a href="<?php echo $this->route->assemble(array($this->page=>$this->paginator->getPrevious())+$this->params).$queryStr;?>">Prev</a></li>
<?php }?>

<?php foreach($this->paginator->getPagesInRange() AS $v) {?>
	<?php if($v == $this->paginator->getCurrentPageNumber()) {?>
		<li class="current"><?php echo $v;?></li>
	<?php } else {?>
		<li><a href="<?php echo $this->route->assemble(array($this->page=>$v)+$this->params).$queryStr;?>"><?php echo $v;?></a></li>
	<?php }?>
<?php }?>

<?php if($this->paginator->getNext()) {?>
<li class="next"><a href="<?php echo $this->route->assemble(array($this->page=>$this->paginator->getNext())+$this->params).$queryStr;?>">Next</a></li>
<?php }?>


<?php if($this->paginator->getLast() != $this->paginator->getLastPageInRange()) {?>
<li class="last"><a href="<?php echo $this->route->assemble(array($this->page=>$this->paginator->getLast())+$this->params).$queryStr;?>"><?php echo $this->paginator->getLast();?></a></li>
<?php }?>
</ul>